﻿# -*- coding: utf-8 -*-
# !/usr/bin/env python
# views.py用于编写主逻辑


from app import app
from flask import request, render_template,send_from_directory
from config.config import *
import json


#user
from app.route.user import user as user_blueprint
app.register_blueprint(user_blueprint,url_prefix="/user")


from app.route.spider import spider as spider_blueprint
app.register_blueprint(spider_blueprint,url_prefix="/spider")


@app.route('/')
def index():
    print (request.path)
    #test()
    #return render_template('index.html')
    return 'hello'

'''
@app.route('/favicon.ico')
def favicon():
    return send_from_directory(os.path.join(app.root_path, 'static'),
                               'logo.ico', mimetype='image/vnd.microsoft.icon')
'''
